<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class State_Model extends CI_Model
{
    protected $_lang = '';
    protected $_table = "aw_district";
    
    function __construct() {
        parent::__construct();
    }
    public function initialise($lang)
    {
        if($lang!=''&&$lang!='vn')
            $this->_lang = '_'.$lang;
        else
            $this->_lang = '';
    }
   
    function getAllState($city_id = 0){
        
        if(!empty($city_id)) {
            $this->db->select('district_id, name,type');
            $this->db->where('city_id',$city_id);
            $this->db->where('bl_active',1);
            $this->db->order_by('name','ASC');

            return $this->db->get($this->_table)->result();
        }
        return;
    }

	
}